define("floatbar/1.0.0/index",["jquery"],function(o,n){var i=o("jquery");i.fn.floatBar=function(o){var n={minScrollTop:0,play:1,display:0,offsetTop:100,close:"span",toTopBtn:".top"};n=i.extend(n,o);var t=function(o){i(window).scroll(function(){var t=i(this).scrollTop();!n.display&&t>=n.minScrollTop&&(n.display=1,o.css("display","block")),n.play&&n.display&&o.stop().animate({top:t+n.offsetTop},"slow")})},l=function(o){var i=o.find(n.close);i.on("click",function(){o.css("display","none"),n.play=0})},a=function(o){var t=o.find(n.toTopBtn);t.on("click",function(){i(window.opera?"html":"html, body").animate({scrollTop:0},"slow",function(){})})},s=function(o){n.display&&1==n.display&&o.css("display","block").animate({top:n.offsetTop},"slow"),setTimeout(function(){i(window).trigger("scroll")},2e3)};return this.each(function(){var o=i(this);l(o),a(o),t(o),s(o)})},n.floatBar=function(o,n){i(o).floatBar(n)}});